import { Button } from 'antd';

export const columns = [
    {
        title: '序号',
        dataIndex: 'serial',
        key: 'serial',
        align: 'center',
        width: 50,
        ellipsis: true,
    },
    {
        title: '任务id',
        dataIndex: 'taskId',
        key: 'taskId',
        align: 'center',
        width: 200,
        ellipsis: true,
        render: (text) => {
            return (
                <div>
                    <span style={{ color: '#4096ff' }}>{text}</span>
                </div>
            )
        },
    },
    {
        title: '开始执行时间',
        dataIndex: 'executionStartTime',
        key: 'executionStartTime',
        align: 'center',
        width: 200,
        ellipsis: true,
    },
    {
        title: '结束执行时间',
        dataIndex: 'executionEndTime',
        key: 'cronDesc',
        width: 200,
        align: 'center',
        ellipsis: true,
    },
    {
        title: '耗时',
        dataIndex: 'executionDuration',
        key: 'executionDuration',
        align: 'center',
        width: 120,
        ellipsis: true,
        render: (duratio) => {
            const d = duratio / 1000
            return (
                <span>{d}秒</span>
            )
        },
    },
];